package com.YHVision.qiuzhike.service;

import com.YHVision.qiuzhike.common.ErrorCode;
import com.YHVision.qiuzhike.exception.BusinessException;
import com.YHVision.qiuzhike.model.dto.question.QuestionQueryRequest;
import com.YHVision.qiuzhike.model.entity.Question;
import com.YHVision.qiuzhike.model.entity.User;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.YHVision.qiuzhike.model.entity.QuestionThumb;
import org.springframework.aop.framework.AopContext;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * 题目点赞服务
 *
 * @author <a href="">YHVision-小y</a>
 * @from <a href="todo">爱编程学习圈</a>
 */
public interface QuestionThumbService extends IService<QuestionThumb> {


    /**
     *  题目点赞
     * @param questionId
     * @param loginUserId
     * @return
     */
    int doQuestionThumb(long questionId, User loginUserId);


    /**
     *  题目点赞具体操作（内部操作）
     * @param userId
     * @param questionId
     * @return
     */
    int doQuestionThumbInner(long questionId, long userId );
}

